package com.example.gulimall;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.autoconfigure.jdbc.DataSourceAutoConfiguration;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.cloud.openfeign.EnableFeignClients;

/**
 * elasticseach 主启动类
 * 1.增加nacos注册发现
 * 2.开启远程调用feign
 * @author GuLin
 * @date 14:00 2021/6/11
 **/
@EnableDiscoveryClient
@EnableFeignClients(basePackages = "com.example.gulimall.search.feign")
@SpringBootApplication(exclude = DataSourceAutoConfiguration.class)
public class GulimallSearchApplication {

    public static void main(String[] args) {
        SpringApplication.run(GulimallSearchApplication.class, args);
    }

}
